The end result of running <#116#><#2106#>rayshade<#2106#><#116#> is an image file. Depending upon how it was installed, <#117#><#2108#>rayshade<#2108#><#117#> writes images in either the Utah Raster <#118#>RLE<#118#> format or a generic but easily-manipulated <#119#>mtv<#119#> format used by Mark VandeWettering in his <#120#>mtv<#120#> ray tracer. The <#121#>mtv<#121#> format consists of a header giving the resolution of the image followed by interleaved red-green-blue values for each pixel. The <#122#>RLE<#122#> format supports an arbitrary number of color channels, an alpha channel, comments, a history field, and the ability to treat images as windows into a larger image. As a result of this flexibility, a number of <#123#><#2110#>rayshade<#2110#><#123#>'s features are not supported if the <#124#>mtv<#124#> format is being used. You are thus strongly encouraged to obtain a copy of the Utah Raster Toolkit.
If the <#125#>mtv<#125#> format is used, the image will (and must) consist of three eight-bit color channels. If the <#126#>RLE<#126#> format is used, the image file consists of three eight-bit color channels plus an eight-bit alpha channel. <#127#><#2112#>Rayshade<#2112#><#127#> also documents in the <#128#>RLE<#128#> header the command line and <#129#>gamma<#129#> value used in creating the image.
If more than one frame is rendered, the resulting images are appended in turn to the image file. The various utilities provided by the Utah Raster Toolkit can be used to manipulate the resulting ``movie'' files. If the Toolkit is not being used, you will probably need to write utility programs to handle the decidedly non-standard multi-image <#130#>mtv<#130#> format files.
By default, <#131#><#2114#>rayshade<#2114#><#131#> writes the computed image to the standard output. The image file may be written to a file instead by specifying a file name in the input stream.
The size of the output image is measured in pixels. The <#137#>x<#137#> size is the number of pixels left-to-right, while the <#138#>y<#138#> size is the number of pixels bottom-to-top.
When rendering an image, it is often advantageous to split the image into a number of disjoint windows, each of which is rendered on a different machine. One then combines the images corresponding to the windows into a final image.
It is also convenient to be able to render a small portion of the window by specifying a subregion using normalized coordinates.
The Range Map or <#169#>Z Buffer<#169#> output file (see Appendix D) will also obey the <#170#>screen<#170#>, <#171#>window<#171#> and <#172#>crop<#172#> commands.
<#173#>Gamma correction<#173#> may also be applied to the three output color channels. See Appendix A for more details.